<?php
use think\facade\Route;

Route::miss('api/api/error');

//一般路由规则，访问的url为：v1/address/1,对应的文件为Address类下的read方法
//Route::get(':version/address/:id', 'api/:version.user/address');

Route::post('api/cgi-bin/:version/questions', 'api/:version.user/getQuestions');

/*人像漫画风*/
Route::post('api/cgi-bin/:version/comics', 'api/:version.user/comics');

//获取首页数据
Route::post('api/cgi-bin/:version/activity', 'api/:version.user/activity');
Route::post('api/cgi-bin/:version/openid', 'api/:version.user/openid');
Route::post('api/cgi-bin/:version/picLogin', 'api/:version.PicApi/picLogin');

Route::post('api/cgi-bin/:version/copy_count', 'api/:version.user/copyCount');

/*用户首页配置*/
Route::post('api/cgi-bin/:version/config', 'api/api/:version.user/getUserConfig');

Route::post('api/cgi-bin/:version/userinfo', 'api/api/:version.user/getUserInfoIndex');
Route::post('api/cgi-bin/:version/sign', 'api/api/:version.user/daySign');
Route::post('api/cgi-bin/:version/comic', 'api/api/:version.PicApi/index');



/*句子*/
Route::post('api/cgi-bin/:version/category_detail', 'api/api/:version.kpss/categoryDetail');
Route::post('api/cgi-bin/:version/category', 'api/api/:version.kpss/getCategory');
Route::post('api/cgi-bin/:version/content', 'api/api/:version.kpss/getContent');
Route::post('api/cgi-bin/:version/search', 'api/api/:version.kpss/searchContent');
Route::post('api/cgi-bin/:version/autoplus', 'api/api/:version.kpss/updateCategoryInc');
/*图片*/
Route::post('api/cgi-bin/:version/img_cat', 'api/api/:version.kpss/getImgCat');
Route::post('api/cgi-bin/:version/imgs', 'api/api/:version.kpss/getImgs');

//海报生成
Route::post('api/cgi-bin/:version/poster_info', 'api/api/:version.kpss/getPosterInfo');
Route::post('api/cgi-bin/:version/poster', 'api/api/:version.kpss/posterMaker');
/*获取模版*/
Route::post('api/cgi-bin/:version/template_d', 'api/api/:version.kpss/setTemplate');
Route::post('api/cgi-bin/:version/template', 'api/api/:version.kpss/getTemplate');

/*获取贴纸*/
Route::post('api/cgi-bin/:version/stickers', 'api/api/:version.kpss/getStickers');



//生成access_token，post访问Token类下的token方法
Route::post('api/cgi-bin/:version/access_token', 'sns/token/token');
Route::post('api/cgi-bin/:version/refresh_token', 'sns/token/refresh');

